import {Component} from '@angular/core';
import {RegisterServices} from '../../../app/services/http.register.services';

@Component({
    selector:"nav-bar",
    templateUrl:"app/component/bar/nav.bar.component.html"
})

export class NavBar{
    constructor(private registerServices:RegisterServices){

    }

    onClick(){
       if(this.registerServices.checkLogin()){
          this.registerServices.loginOut();
       }
    }
}
